package com.xyh.config;

import com.netflix.hystrix.HystrixCommand;
import com.netflix.hystrix.HystrixCommandGroupKey;
import com.netflix.hystrix.HystrixCommandKey;
import com.netflix.hystrix.HystrixThreadPoolKey;
import com.sun.istack.internal.Pool;

import java.util.Map;

public class KeyCommand extends HystrixCommand<String> {
    public KeyCommand() {
        super(Setter.withGroupKey(HystrixCommandGroupKey.Factory.asKey("TestGroupKey")).andCommandKey(HystrixCommandKey.Factory.asKey("CommandKey"))
                .andThreadPoolKey(HystrixThreadPoolKey.Factory.asKey("PoolKey")));

    }

    protected String run() throws Exception {
        return null;
    }
}
